﻿@using Pyramid.Models
@model IEnumerable<TreatmentPlan>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="@Url.Action("CreateTreatmentPlan", new { masterId = ViewBag.MasterId })" target="dialog" mask="true" title="添加疗程设计" width="810" height="480" resizable="false"><span>添加</span></a></li>
			<li><a class="edit" href="@Url.Action("EditTreatmentPlan", new {id = "{id}"})" target="dialog" mask="true" title="编辑疗程设计" width="810" height="480" resizable="false"><span>修改</span></a></li>
			<li><a class="delete" href="@Url.Action("DeleteTreatmentPlan", new { id = "{id}", masterId = ViewBag.MasterId })" target="ajaxTodo" title="确定要删除吗？" callback="refreshAjaxDone"><span>删除</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layouth="90">
		<thead>
			<tr>
				<th width="120">@Html.DisplayNameFor(m => m.MaterialDate)</th>
				<th width="200">@Html.DisplayNameFor(m => m.Region)</th>
				<th>@Html.DisplayNameFor(m => m.ArrangedProducts)</th>
				<th>@Html.DisplayNameFor(m => m.ExpectedEffect)</th>
				<th>@Html.DisplayNameFor(m => m.Announcements)</th>
			</tr>
		</thead>
		<tbody>
			@foreach (var s in Model)
			{
				<tr target="id" rel="@s.Id">
					<td>@s.MaterialDate.ToString("yyyy-MM-dd")</td>
					<td>@s.Region</td>
					<td>@s.ArrangedProducts</td>
					<td>@s.ExpectedEffect</td>
					<td>@s.Announcements</td>
				</tr>
			}
		</tbody>
	</table>
</div>
